package com.fsc.comadapoc1.events
{
    import com.fsc.comadapoc1.entities.Fund;
    import com.fsc.comadapoc1.entities.Portfolio;
    import com.fsc.comadapoc1.entities.TradeRequest;
    
    import flash.events.Event;

    public class CreateTradesEvent extends Event 
    {
        public static const SUBSCRIBE_TRADE:String = "subscribeTrade"; 

		public static const SUBSCRIBE_TRADE_COMPLETE:String = "subscribeTradeComplete";

		public static const SUBSCRIBE_TRADE_ERROR:String = "subscribeTradeError";

		public function CreateTradesEvent(type:String,trade:TradeRequest=null)
        {
            super(type, true);
			_tradeRequest = trade;
			
        }

		private var _tradeRequest:TradeRequest;
	


        public function get tradeRequest():TradeRequest
        {
            return _tradeRequest;
        }

        override public function clone():Event
        {
            return new CreateTradesEvent(type,_tradeRequest);
        }
    }
}